From 1fa254f62f780c2c08a1888303855f4f5fbffe01 Mon Sep 17 00:00:00 2001 From: justbur Date: Sat, 11 Jul 2015 13:38:56 -0400 Subject: [PATCH] Add default replacement for select-window-[N] --- which-key.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index 20594797c8a..5be226f62e3 100644 --- a/which-key.el +++ b/which-key.el @@ -55,7 +55,8 @@ in the first example." :group 'which-key :type '(alist :key-type regexp :value-type string)) (defcustom which-key-description-replacement-alist - '(("Prefix Command" . "prefix") (".+/\\(.+\\)" . "\\1")) + '(("Prefix Command" . "prefix") (".+/\\(.+\\)" . "\\1") + ("select-window-\\([1-9]\\)" . "Window \\1")) "See `which-key-key-replacement-alist'. This is a list of lists for replacing descriptions. The second one removes \"namespace/\" from \"namespace/function\". This is a convention for naming -- 2.30.2